package org.jeecg.modules.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.app.entity.ShopInfo;
import org.jeecg.modules.app.entity.ShopInfoRemake;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 李圳川
 * @version 1.0
 * @date 2022/6/13 22:45
 * @content
 */

@Repository
public interface ShopMapper extends BaseMapper<ShopInfo> {

    void upDateShopInfoScore(ShopInfo shopInfo);

    void updateSellCountInOrderById(@Param("id")String id,@Param("num")Integer num);

    List<ShopInfoRemake> selectShopRemakeById(@Param("id")String id);

    List<ShopInfo> selectShopInfoOrderBySellCount();
}
